package cn.tedu.csmall.product.mapper;

import cn.tedu.csmall.product.pojo.entity.PmsBrandCategory;
import cn.tedu.csmall.product.pojo.vo.BrandCategoryStandardVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandCategoryMapper {
    int insert(PmsBrandCategory pmsAttribute);

    int insertBatch(List<PmsBrandCategory> pmsAttributes);

    int deleteById(long l);

    int deleteByIds(Long[] l);

    int update(PmsBrandCategory pmsAttribute);

    int count();

    BrandCategoryStandardVo selectById(Long id);

    List<BrandCategoryStandardVo> list();

    int countByBrand(Long id);

    int countByCategory(Long category_id);

    int countByBrandAndCategory(@Param("brandId") Long brandId, @Param("categoryId") Long categoryId);
}
